<template>
  <div class="home">
    <Monitor></Monitor>
    <Search></Search>
  </div>
</template>

<script lang="ts">
import Monitor from './monitor/index.vue'
import Search from './search/index.vue'
export default {
  name: 'Home',
  components:{Monitor,Search}
}
</script>
<script lang="ts" setup>
import { useUserInfoStore } from '@/stores/userInfo';
import {useReportDataStore} from '@/stores/reportData'
const reportDataStore = useReportDataStore()
import {onMounted} from 'vue'
const userInfoStore = useUserInfoStore()
onMounted(()=>{
  reportDataStore.getReportData()
})
</script>

<style scoped>
  .home {
    width: 100%;
    padding: 20px;
    background-color: #eee;
  }
</style>
